package admin

import database "hft/Database"

type ActiveGroup struct {
	database.Base
	BorderColor string        `json:"borderColor,omitempty"`
	TextColor   string        `json:"textColor,omitempty"`
	Name        string        `json:"name,omitempty"`
	AccountId   uint          `json:"accountId,omitempty"`
	ActiveBase  []*ActiveBase `json:"articleBases,omitempty" gorm:"foreignKey:ActiveGroup;references:ID;constraint:OnDelete:CASCADE,OnUpdate:NO ACTION"`
}

func (ActiveGroup) TableName() string {
	return database.TableNameFormat("active_type")
}
